NativeCameraOutput
A CameraOutput backed by a CameraX UseCase (port of V5's public/NativeCameraOutput.kt).
This is an extension point for plugin modules: a module (e.g. barcode) adds its own output to a CameraSession by implementing NativeCameraOutput, and the session binds the UseCase it creates like the built-in outputs'.
Types
Resolved configuration for a camera output. null values mean "no constraint specified, platform decides".
A UseCase prepared by a NativeCameraOutput, but not yet attached to the Camera. After it has been bound with bindToLifecycle(...), call notifyAttached to let the output know it can use the live UseCase.
Properties
The resolution this output is currently streaming at, or null if it is not connected yet.
The currently selected MirrorMode.
The orientation of the content produced by this output.
Functions
Same as dispose, to use a CameraOutput with use { }.
Creates a PreparedUseCase for the given config. This may be called multiple times to probe feature compatibility (e.g. in ConstraintResolver); only the winning one gets PreparedUseCase.notifyAttached. An output may re-use a previously created UseCase if the given config is the same for it.